// 跟用户相关的请求
import { $http } from "@/utils";
// 1登录请求
export function loginAPI(formData) {
  return $http({
    url: "/authorizations",
    method: "POST",
    data: formData,
  });
}

// 2.获取用户信息
export function getUserInfoAPI() {
  return $http({
    url: "/user/profile",
    method: "GET",
  });
}